package com.haizhi.crm.biz.task.message.handler;

/**
 * Created by wangshan on 2018/6/3.
 */
public class MsgResponse {
    private boolean sucess = true;
    private String message;

    public boolean isSucess() {
        return sucess;
    }

    public void setSucess(boolean sucess) {
        this.sucess = sucess;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static MsgResponse success() {
        return new MsgResponse();
    }

    public static MsgResponse error(String error) {
        MsgResponse response = new MsgResponse();
        response.setSucess(false);
        response.setMessage(error);
        return response;
    }
}
